package com.dao;

import java.util.HashMap;
import java.util.Map;

import com.pojo.Image;

public class Test {

	static Image image = new Image("15","http://123.txt");
	
	public static void main(String[] args) {
//		UploadDao ud = new UploadDao();
//		Map<String , String > map = new HashMap<>();
//		map.put("qw", "11");
		
		
//		int i = ud.saveImage(image);
//		if(i > 0 ){
//			System.out.println("成功");
//		}else{
//			System.out.println("失败");
//		}
		
		String fileName = "/wwwww/123434324323.jpg";
		String string = fileName.substring(fileName.lastIndexOf("/"));
		String substring = string.substring(1, string.length());
		System.out.println(substring);
	}
}
